import request from '@/utils/request'

export function orderList(query) {
  return request({
    url: '/order/list',
    method: 'get',
    params: query
  })
}

export function orderTotallist(query) {
  return request({
    url: '/order/totalList',
    method: 'get',
    params: query
  })
}

export function orderDetail(id) {
  return request({
    url: '/order/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export function cancalOrder(id) {
  return request({
    url: '/order/cancal',
    method: 'get',
    params: {
      id
    }
  })
}

export function ordersList(id) {
  return request({
    url: '/order/ordersList',
    method: 'get',
    params: {
      id
    }
  })
}

export function modifyOrder(query) {
  return request({
    url: '/order/modifyOrder',
    method: 'get',
    params: query
  })
}
